/*
 * Copyright (c) 2015. 速位中国
 */

package common.net;


/**
 * netty service
 */
public interface IServer {


    /**
     * nio
     *
     * @throws Exception
     */
    void startServer() throws Exception;


    /**
     * run netty server
     */
    void runNio() throws Exception;

    /**
     * 基于jni ，native Epoll
     *
     * @throws Exception
     */
    void runNativeEpoll() throws Exception;



}
